package com.ruoyi.project.pm.common.service;

import com.ruoyi.project.pm.common.domain.PMInfoVO;
import com.ruoyi.project.pm.common.domain.SalesCustomerVO;
import com.ruoyi.project.pm.common.mapper.PMCommonMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 铁蛋儿
 * @date 2020-09-19 16:54
 * @desc 百战程序员 http://www.itbaizhan.com
 */
@Service
public class PMCommonServiceImpl implements PMCommonService {

    @Autowired
    PMCommonMapper pmCommonMapper;

    /**
     * 查询项目的详细信息 根据页面传递的id
     *
     * @param pmId
     * @return
     */
    @Override
    public PMInfoVO selectPMInfoVOById(Integer pmId) {
        return pmCommonMapper.selectPMInfoVOById(pmId);
    }

    /**
     * 查询顾客的信息  根据csId
     *
     * @param csId
     * @return
     */
    @Override
    public SalesCustomerVO selectSalesCustomerVOById(Integer csId) {
        return pmCommonMapper.selectSalesCustomerVOById(csId);
    }
}
